﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="login.aspx.vb" Inherits="webprogram_login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="images/style.css" rel="stylesheet" type="text/css"/>
    <title>网站后台管理系统</title>
    <script language="javascript" src="images/jquery.js" ></script>
    <script src="images/main.js"></script>
    <script language="JavaScript">
        CheckBrowerVersion();
        if (top.location != self.location) { top.location = self.location; }
        function CheckBrowerVersion() {
            var MajorVer = navigator.appVersion.match(/MSIE (.)/)[1];
            var MinorVer = navigator.appVersion.match(/MSIE .\.(.)/)[1];
            var IE6OrMore = MajorVer >= 5.5 || (MajorVer >= 5.5 && MinorVer >= 5.5);
            if (!IE6OrMore) {
                alert('IE浏览器版本太低，请升级IE浏览器到5.5以上版本！');
                document.all.BtnSubmit.disabled = true;
            }
        }
        window.onload = function () {
            var admuid = getCookie('admUID');
           
            if (admuid != null) { oid("Txt_User").value = admuid; oid("AutoGet").checked = true; }
        }
</script>
    <style type="text/css">
        .auto-style1
        {
            height: 75px;
        }
        .but_login
        { background:url(images/bt_1.gif) center no-repeat; width:89px; height:27px;
        }
		 .but_close
        { background:url(images/bt_2.gif) center no-repeat; width:89px; height:27px;
        }
        #Image_Code
        { margin-bottom:-7px;
        } 
    </style>
</head>
<body bgcolor="#87D2E3" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

  <form name="form1" runat="server" >
      <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
<div align="center">
    <br /><br /><br />
    <table  id="tbLogin" style="width:100%; height:100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#87D2E3">
    <tr>
      <td align="center"><table width="436" height="238" border="0" cellpadding="0" cellspacing="0" background="images/login.jpg" bgcolor="#FFFFFF">
      <tr>
        <td align="center" valign="middle" background="images/bg_login_01.jpg" class="auto-style1"></td>
      </tr>
      <tr>
        <td height="169" align="right" valign="middle" background="images/bg_login_02.jpg"><table border="0" align="right" cellpadding="1" cellspacing="0" style="margin-right:30px;">
            <tr>
              <td height="25" align="center"><span class="style2">用户名：</span></td>
              <td height="25" align="left">
                  <asp:TextBox ID="Txt_User" runat="server" Width="120px"></asp:TextBox>
&nbsp;<input   type="checkbox" id="AutoGet" value="1" runat="server" />记住用户名</td></tr>
            <tr>
              <td height="25" align="center"><span class="style2">密　码：</span></td>
              <td height="25" align="left">
                  <asp:TextBox ID="Txt_PWD" runat="server" TextMode="Password" Width="120px"></asp:TextBox>
                </td>
            </tr>
            <tr valign="middle">
              <td height="25" align="center"><span class="style2">验证码：</span></td>
              <td height="25" align="left" >
                  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                  <ContentTemplate>
                    <asp:TextBox ID="Txt_Code" runat="server" Width="60px"  MaxLength="4"></asp:TextBox>
                    <asp:Image ID="Image_Code" runat="server" BorderColor="#0066CC" BorderWidth="1px" cCode="" Height="22px" Width="55px" />
                    <asp:Button ID="Button_getCode" runat="server" BorderStyle="None" BorderWidth="0px" CssClass="hand" ForeColor="#003399" Text="更换验证码" ToolTip="点击此处更换验证码" UseSubmitBehavior="False" BackColor="Transparent" CausesValidation="False" />
                    <asp:TextBox ID="Txt_sCode" runat="server" Height="20px" Width="60px" Visible="False"></asp:TextBox>
                    </ContentTemplate>
                  
                  </asp:UpdatePanel>
              </td>
            </tr>
            <tr valign="middle">
              <td height="40" colspan="2" align="left" >
			      <asp:Button ID="Button_login" runat="server" Text="" BorderWidth="0px"  ToolTip="登陆后台系统"  CssClass="but_login" />
			   &nbsp;
			   <asp:Button ID="Button_Close" runat="server" Text="" BorderWidth="0px"  ToolTip="退出系统并关闭"  CssClass="but_close" CausesValidation="False" OnClientClick="window.close()" UseSubmitBehavior="False" />
             </td>
              </tr>
            <tr valign="middle">
              <td height="20" colspan="2" align="center" >

                  <asp:Label ID="Label_err" runat="server" ForeColor="Red"></asp:Label>

                  </td>
                </tr>
        </table></td>
      </tr>
      <tr>
        <td height="114" align="center" valign="middle" background="images/bg_login_03.jpg">&nbsp;</td>
      </tr>
    </table></td>
      </tr>
    </table>

</div>
  </form>

</body>
</html>
 
